import request from "@/utils/request";

/**
 * 保存体检
 */
export function add(data) {
  return request({
    method: "post",
    url: "/ats/user/health/add",
    data,
  });
}

/**
 * 删除体检
 */
export function deleteByIds(data) {
  return request({
    method: "post",
    url: "/ats/user/health/delete",
    data,
  });
}

/**
 * 分页查询体检信息
 */
export function page(data) {
  return request({
    method: "get",
    url: "/ats/user/health/page",
    data,
  });
}

/**
 * 修改体检
 */
export function update(data) {
  return request({
    method: "post",
    url: "/ats/user/health/update",
    data,
  });
}

/**
 * 按主键获取单个体检
 */
export function getById(id) {
  return request({
    method: "get",
    url: `/ats/user/health/getById?id=${id}`,
  });
}

/**
 * 获取健康提醒信息
 */
export function warra() {
  return request({
    method: "get",
    url: `/ats/user/health/warra`,
  });
}
